package sury.dal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 商品订单退货
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("tb_yb_goods_orders")
public class GoodsAfterSaleEntity {
    /**
     * 订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 处理人id
     */
    @TableField("admin_id")
    private Long adminId;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 地址id
     */
    @TableField("address_id")
    private Long addressId;


    /**
     * 订单编号
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 退款金额
     */
    @TableField("price")
    private Double price;

    /**
     * 申请状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 退货原因
     */
    @TableField("reason")
    private Integer reason;

    /**
     * 问题描述
     */
    @TableField("problem_description")
    private String problemDescription;

    /**
     * 申请时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;
    /**
     * 处理时间
     */
    @TableField("process_time")
    private LocalDateTime processTime;

}
